package com.linghang.lhonline.VO;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class CommentVO {

    @JsonProperty("comment_id")
    private Integer commentId;

    @JsonProperty("comment_body")
    private String body;

    @JsonProperty("post_time")
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
    private Date postTime;

    @JsonProperty("user_name")
    private String userName;

    @JsonProperty("user_image_url")
    private String imageUrl;

    @JsonProperty("up")
    private Integer up;

/*    @JsonProperty("children_list")
    private List<CommentVO> childrenList = null;*/
}
